import Vue from 'vue'
import Vuex from 'vuex'
import actions from '../actions/tab'
import { UPDATE_CHANGE_TAB_TIME } from '../mutation-types'

Vue.use(Vuex)

const state = {
  changeTabTime: ''
}

const mutations = {
  [UPDATE_CHANGE_TAB_TIME] (state, time) {
    state.changeTabTime = time
  }
}

export default {
  state,
  mutations,
  actions
}
